package org.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author ：xjlonly
 * @date ：Created in 2021/4/9 17:02
 * @description：
 * @modified By：
 * @version: $
 */
// name：调⽤的服务名称，和服务提供者yml⽂件中spring.application.name保持⼀致
@FeignClient(value = "lg-service-resume")
@RequestMapping(value = "/resume")
public interface ResumeServiceFeignClient {
    //调⽤的请求路径
    @RequestMapping(value = "/openstate/{userId}",method= RequestMethod.GET)
     Integer findResumeOpenState(@PathVariable(value = "userId") Long userId);
}
